﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true" CodeFile="NewSoldier.aspx.cs" Inherits="Police_TranslateDocument_NewSoldier" StylesheetTheme="Content" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ajaxToolkit:CalendarExtender ID="ceBirth" runat="server" Animated="False" Format="yyyy-MM-dd"
        TargetControlID="Birthday">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="ceJoinDate" runat="server" Animated="False" Format="yyyy-MM-dd"
        TargetControlID="JoinDate">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="ceYouthDate" runat="server" Animated="False" Format="yyyy-MM-dd"
        TargetControlID="YouthDate">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="cePartyDate" runat="server" Animated="False" Format="yyyy-MM-dd"
        TargetControlID="PartyDate">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:FilteredTextBoxExtender ID="ftbHeight" runat="server" FilterType="Numbers"
        TargetControlID="Height">
    </ajaxToolkit:FilteredTextBoxExtender>
    <ajaxToolkit:FilteredTextBoxExtender ID="ftbWeight" runat="server" FilterType="Custom, Numbers"
        TargetControlID="Weight" ValidChars=".">
    </ajaxToolkit:FilteredTextBoxExtender>
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="100%">
        <caption>
            <asp:Label ID="ActionTitle" runat="server" Text="新增士兵基本档案"></asp:Label></caption>
        <tr>
            <td>
                <table border="0" cellpadding="4" cellspacing="0" width="100%">
                    <tr>
                        <td width="120">
                            单位：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlDepartment" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td width="120">
                            士兵编号：
                        </td>
                        <td>
                            <asp:UpdatePanel ID="upnAutoWrite" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="False">
                                <ContentTemplate>
                                    <asp:TextBox ID="CardID" runat="server" SkinID="textbox_en" Width="80px"></asp:TextBox>
                                    <asp:LinkButton ID="btnAutoWrite" Text="自动分配" runat="server" OnClick="btnAutoWrite_Click" />
                                    <ajaxToolkit:FilteredTextBoxExtender ID="ftbCardID" runat="server" FilterType="Numbers"
                                        TargetControlID="CardID">
                                    </ajaxToolkit:FilteredTextBoxExtender>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="btnAutoWrite" EventName="Click" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            姓名：
                        </td>
                        <td>
                            <asp:TextBox ID="SoldierName" runat="server" SkinID="textbox_cn" Width="180px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ReqSoldierName" runat="server" ControlToValidate="SoldierName">必需</asp:RequiredFieldValidator>
                        </td>
                        <td>
                            性别：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSex" runat="server" Width="188px">
                                <asp:ListItem Selected="True">男</asp:ListItem>
                                <asp:ListItem>女</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            民族：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlNation" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            职务：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlDuty" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            警衔：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlRank" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            家庭出身：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlBackground" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            籍贯：
                        </td>
                        <td colspan="3">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="False">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlProvinces" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProvinces_SelectedIndexChanged"
                                        Width="120px">
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="ddlCities" runat="server" Width="240px">
                                    </asp:DropDownList>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ddlProvinces" EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            本人成分：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            婚姻状况：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlMerriage" runat="server" Width="188px">
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem>未婚</asp:ListItem>
                                <asp:ListItem>已婚</asp:ListItem>
                                <asp:ListItem>离异</asp:ListItem>
                                <asp:ListItem>丧偶</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            文化程度：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlCulture" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            宗教信仰：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlReligion" runat="server" Width="188px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            出生日期：
                        </td>
                        <td>
                            <asp:TextBox ID="Birthday" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            入伍时间：
                        </td>
                        <td>
                            <asp:TextBox ID="JoinDate" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            入团时间：
                        </td>
                        <td>
                            <asp:TextBox ID="YouthDate" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            入党时间：
                        </td>
                        <td>
                            <asp:TextBox ID="PartyDate" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            入伍所在地：
                        </td>
                        <td>
                            <asp:TextBox ID="JoinPlace" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            入伍批准书编号：
                        </td>
                        <td>
                            <asp:TextBox ID="ConfirmID" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            士兵登记表编号：
                        </td>
                        <td>
                            <asp:TextBox ID="RegisterID" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            士官选取表编号：
                        </td>
                        <td>
                            <asp:TextBox ID="ChooseID" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            专业一：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSpeciality1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSpeciality1_SelectedIndexChanged"
                                Width="188px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            专业二：
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlSpeciality2" runat="server" Width="188px">
                                    </asp:DropDownList>
                                    </td>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ddlSpeciality1" EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            身高：
                        </td>
                        <td>
                            <asp:TextBox ID="Height" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>cm
                        </td>
                        <td>
                            体重：
                        </td>
                        <td>
                            <asp:TextBox ID="Weight" runat="server" SkinID="textbox_en" Width="180px"></asp:TextBox>kg
                        </td>
                    </tr>
                    <tr>
                        <td>
                            家庭住址：
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="HomePlace" runat="server" SkinID="textbox_en" Width="582px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            照片：
                        </td>
                        <td>
                            <asp:FileUpload ID="fileUpload" runat="server" />
                        </td>
                        <td colspan="2">&nbsp;<asp:CheckBox ID="IsContract" runat="server" Text="是否是合同制" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center">
                            <asp:Button ID="btnSave" runat="server" Text="添加" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center">
                            <asp:Label ID="lblInfo" runat="server" Width="300px" Height="16px"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </asp:Content>


